package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 资产报废记录对象 property_scrap
 * 
 * @author ruoyi
 * @date 2023-02-08
 */
public class PropertyScrapVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** code */
    @Excel(name = "code")
    private String code;

    /** 资产id */
    private Long basicsId;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String basicsName;

    /** 报废时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报废时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scrapTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setBasicsId(Long basicsId) 
    {
        this.basicsId = basicsId;
    }

    public Long getBasicsId() 
    {
        return basicsId;
    }
    public void setScrapTime(Date scrapTime) 
    {
        this.scrapTime = scrapTime;
    }

    public Date getScrapTime() 
    {
        return scrapTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getBasicsName() {
        return basicsName;
    }

    public void setBasicsName(String basicsName) {
        this.basicsName = basicsName;
    }

    @Override
    public String toString() {
        return "PropertyScrapVo{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", basicsId=" + basicsId +
                ", basicsName=" + basicsName +
                ", scrapTime=" + scrapTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
